package com.gpframework.module.common.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.IService;
import com.gpframework.module.common.domain.CommonLabel;
import com.gpframework.module.common.domain.req.CommonLabelUpdate;
import com.gpframework.module.common.domain.vo.CommonLabelVo;

import java.util.List;

/**
 * @ClassName CommonLabel
 * @Author gpframework
 * @Date 2022-04-07
 * @Version 1.0.0
 * @Description 标签Service接口
 */
public interface ICommonLabelService extends IService<CommonLabel> {

    /**
     * @Description 查询列表返回VO 用于返回给前端的列表接口
     * @Author gpframework
     * @Date 2022-04-07
     * @Param [lqw]
     * @Return List<CommonLabelVo>
     */
    List<CommonLabelVo> listVo(QueryWrapper<CommonLabel> lqw);

    /**
     * @Description 通过查询详情VO 用于返回给前端的列详情接口
     * @Author gpframework
     * @Date 2022-04-07
     * @Param [id]
     * @Return CommonLabelVo
     */
    CommonLabelVo getVoById(Long id);

    /**
     * 添加标签
     *
     * @param commonLabel
     * @return
     */
    boolean saveLabel(CommonLabel commonLabel);

    /**
     * 修改标签
     *
     * @param commonLabelUpdate
     * @return
     */
    boolean edit(CommonLabelUpdate commonLabelUpdate);

    /**
     * 删除标签
     *
     * @param idList
     * @return
     */
    boolean delByIds(List<Long> idList, Long brandId);
}
